package com.grass.p019lv.databinding;

import android.graphics.drawable.Drawable;
import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.core.widget.NestedScrollView;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.ViewBindingAdapter;
import androidx.recyclerview.widget.RecyclerView;
import com.androidsa.bttsddka.R;
import com.grass.p019lv.generated.callback.OnClickListener;
import com.grass.p019lv.novel.activity.VoiceNovelActivityNew;
import com.grass.p019lv.view.CustomSeekBar;
import com.zhy.view.flowlayout.TagFlowLayout;

/* renamed from: com.grass.lv.databinding.ActivityVoiceNewBindingImpl */
public class ActivityVoiceNewBindingImpl extends ActivityVoiceNewBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback12;
    private final View.OnClickListener mCallback13;
    private final View.OnClickListener mCallback14;
    private final View.OnClickListener mCallback15;
    private final View.OnClickListener mCallback16;
    private final View.OnClickListener mCallback17;
    private final View.OnClickListener mCallback18;
    private final View.OnClickListener mCallback19;
    private final View.OnClickListener mCallback20;
    private final View.OnClickListener mCallback21;
    private long mDirtyFlags;
    private final TextView mboundView1;
    private final LinearLayout mboundView10;
    private final LinearLayout mboundView8;
    private final LinearLayout mboundView9;

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        return false;
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(R.id.tool_bar, 11);
        sViewsWithIds.put(R.id.ll_tool, 12);
        sViewsWithIds.put(R.id.iv_playing, 13);
        sViewsWithIds.put(R.id.tv_tool_title, 14);
        sViewsWithIds.put(R.id.scroll_view, 15);
        sViewsWithIds.put(R.id.iv_cover, 16);
        sViewsWithIds.put(R.id.tv_title, 17);
        sViewsWithIds.put(R.id.flow_type, 18);
        sViewsWithIds.put(R.id.seekbar, 19);
        sViewsWithIds.put(R.id.iv_play_loading, 20);
        sViewsWithIds.put(R.id.rl_ad, 21);
        sViewsWithIds.put(R.id.iv_ad, 22);
        sViewsWithIds.put(R.id.tv_ad, 23);
        sViewsWithIds.put(R.id.recycler, 24);
        sViewsWithIds.put(R.id.iv_collect, 25);
        sViewsWithIds.put(R.id.tv_comment, 26);
        sViewsWithIds.put(R.id.tv_donate, 27);
    }

    public ActivityVoiceNewBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 28, sIncludes, sViewsWithIds));
    }

    private ActivityVoiceNewBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 0, (TagFlowLayout) objArr[18], (ImageView) objArr[22], (ImageView) objArr[25], (ImageView) objArr[16], (ImageView) objArr[5], (ImageView) objArr[20], (ImageView) objArr[6], (ImageView) objArr[7], (ImageView) objArr[4], (ImageView) objArr[3], (ImageView) objArr[13], (ImageView) objArr[2], (LinearLayout) objArr[12], (RecyclerView) objArr[24], (RelativeLayout) objArr[21], (LinearLayout) objArr[0], (NestedScrollView) objArr[15], (CustomSeekBar) objArr[19], (Toolbar) objArr[11], (TextView) objArr[23], (TextView) objArr[26], (TextView) objArr[27], (TextView) objArr[17], (TextView) objArr[14]);
        this.mDirtyFlags = -1;
        this.ivPlayBtn.setTag(null);
        this.ivPlayNext.setTag(null);
        this.ivPlayNextSeconds.setTag(null);
        this.ivPlayPrevious.setTag(null);
        this.ivPlayPreviousSeconds.setTag(null);
        this.ivVoiceMenu.setTag(null);
        TextView textView = (TextView) objArr[1];
        this.mboundView1 = textView;
        textView.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[10];
        this.mboundView10 = linearLayout;
        linearLayout.setTag(null);
        LinearLayout linearLayout2 = (LinearLayout) objArr[8];
        this.mboundView8 = linearLayout2;
        linearLayout2.setTag(null);
        LinearLayout linearLayout3 = (LinearLayout) objArr[9];
        this.mboundView9 = linearLayout3;
        linearLayout3.setTag(null);
        this.rootView.setTag(null);
        setRootTag(view);
        this.mCallback17 = new OnClickListener(this, 6);
        this.mCallback15 = new OnClickListener(this, 4);
        this.mCallback13 = new OnClickListener(this, 2);
        this.mCallback21 = new OnClickListener(this, 10);
        this.mCallback19 = new OnClickListener(this, 8);
        this.mCallback20 = new OnClickListener(this, 9);
        this.mCallback16 = new OnClickListener(this, 5);
        this.mCallback14 = new OnClickListener(this, 3);
        this.mCallback12 = new OnClickListener(this, 1);
        this.mCallback18 = new OnClickListener(this, 7);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 8;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (138 == i) {
            setPlayStatus(((Boolean) obj).booleanValue());
        } else if (171 == i) {
            setStatusRefresh((Integer) obj);
        } else if (34 != i) {
            return false;
        } else {
            setClick((VoiceNovelActivityNew.OnClick) obj);
        }
        return true;
    }

    @Override // com.grass.p019lv.databinding.ActivityVoiceNewBinding
    public void setPlayStatus(boolean z) {
        this.mPlayStatus = z;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(138);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.ActivityVoiceNewBinding
    public void setStatusRefresh(Integer num) {
        this.mStatusRefresh = num;
    }

    @Override // com.grass.p019lv.databinding.ActivityVoiceNewBinding
    public void setClick(VoiceNovelActivityNew.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(34);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        int i;
        ImageView imageView;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        boolean z = this.mPlayStatus;
        VoiceNovelActivityNew.OnClick onClick = this.mClick;
        Drawable drawable = null;
        long j2 = j & 9;
        if (j2 != 0) {
            if (j2 != 0) {
                j |= z ? 32 : 16;
            }
            if (z) {
                imageView = this.ivPlayBtn;
                i = R.drawable.ic_voice_play;
            } else {
                imageView = this.ivPlayBtn;
                i = R.drawable.ic_voice_pause;
            }
            drawable = getDrawableFromResource(imageView, i);
        }
        if ((9 & j) != 0) {
            ViewBindingAdapter.setBackground(this.ivPlayBtn, drawable);
        }
        if ((j & 8) != 0) {
            this.ivPlayBtn.setOnClickListener(this.mCallback16);
            this.ivPlayNext.setOnClickListener(this.mCallback17);
            this.ivPlayNextSeconds.setOnClickListener(this.mCallback18);
            this.ivPlayPrevious.setOnClickListener(this.mCallback15);
            this.ivPlayPreviousSeconds.setOnClickListener(this.mCallback14);
            this.ivVoiceMenu.setOnClickListener(this.mCallback13);
            this.mboundView1.setOnClickListener(this.mCallback12);
            this.mboundView10.setOnClickListener(this.mCallback21);
            this.mboundView8.setOnClickListener(this.mCallback19);
            this.mboundView9.setOnClickListener(this.mCallback20);
        }
    }

    @Override // com.grass.p019lv.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = true;
        switch (i) {
            case 1:
                VoiceNovelActivityNew.OnClick onClick = this.mClick;
                if (onClick == null) {
                    z = false;
                }
                if (z) {
                    onClick.btnBack();
                    return;
                }
                return;
            case 2:
                VoiceNovelActivityNew.OnClick onClick2 = this.mClick;
                if (onClick2 == null) {
                    z = false;
                }
                if (z) {
                    onClick2.novelMenu();
                    return;
                }
                return;
            case 3:
                VoiceNovelActivityNew.OnClick onClick3 = this.mClick;
                if (onClick3 == null) {
                    z = false;
                }
                if (z) {
                    onClick3.previousPlaySeconds();
                    return;
                }
                return;
            case 4:
                VoiceNovelActivityNew.OnClick onClick4 = this.mClick;
                if (onClick4 == null) {
                    z = false;
                }
                if (z) {
                    onClick4.previousPlay();
                    return;
                }
                return;
            case 5:
                VoiceNovelActivityNew.OnClick onClick5 = this.mClick;
                if (onClick5 == null) {
                    z = false;
                }
                if (z) {
                    onClick5.togglePlay();
                    return;
                }
                return;
            case 6:
                VoiceNovelActivityNew.OnClick onClick6 = this.mClick;
                if (onClick6 == null) {
                    z = false;
                }
                if (z) {
                    onClick6.nextPlay();
                    return;
                }
                return;
            case 7:
                VoiceNovelActivityNew.OnClick onClick7 = this.mClick;
                if (onClick7 == null) {
                    z = false;
                }
                if (z) {
                    onClick7.nextPlaySeconds();
                    return;
                }
                return;
            case 8:
                VoiceNovelActivityNew.OnClick onClick8 = this.mClick;
                if (onClick8 == null) {
                    z = false;
                }
                if (z) {
                    onClick8.collectVoice();
                    return;
                }
                return;
            case 9:
                VoiceNovelActivityNew.OnClick onClick9 = this.mClick;
                if (onClick9 == null) {
                    z = false;
                }
                if (z) {
                    onClick9.commentVoice();
                    return;
                }
                return;
            case 10:
                VoiceNovelActivityNew.OnClick onClick10 = this.mClick;
                if (onClick10 == null) {
                    z = false;
                }
                if (z) {
                    onClick10.donateVoice();
                    return;
                }
                return;
            default:
                return;
        }
    }
}
